home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / applications / wp / dvi2lj.lha / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-14  |  5.2 KB  |  262 lines

  1. #define USEPXL
  2.  
  3. /*
  4.  *  default font path
  5.  *  can be overridden by environment variable TEXPXL
  6.  *  or -a command line option
  7.  *  popular choice:
  8.  * #define  FONTAREA       "/usr/local/lib/tex/fonts/pk"
  9.  */
  10. #ifndef FONTAREA
  11. #ifdef vms
  12. #define FONTAREA    "tex$pkdir:"
  13. #else
  14. #ifdef _AMIGA
  15. #define FONTAREA    "TeX:pk/laser"
  16. #else
  17. #define FONTAREA    "/usr/local/lib/tex/pk300"
  18. #endif
  19. #endif
  20. #endif
  21.  
  22. /* if DO_SUBDIRECTORIES is specified, search to this depth */
  23. #ifndef MAX_SUBDIR_SEARCH_DEPTH 
  24. #define MAX_SUBDIR_SEARCH_DEPTH 10
  25. #endif
  26.  
  27. /* 
  28.  * if your LaserJet II P or LaserJet III or LaserJet 2000
  29.  * complains about not enough memory, you might try to reduce 
  30.  * the value below or uncomment to use the default settings
  31.  */  
  32. #ifdef LJ2P
  33. #define  MAX_FONTS_PER_PAGE 255         /* maximum number of fonts per page */
  34. #endif
  35.  
  36.  
  37. /* Timing is not very portable.... if you have troubles, use
  38.  * -DNO_TIMING in the Makefile
  39.  */
  40.  
  41. #ifdef u3b2
  42. #define NO_TIMING
  43. #endif
  44. #ifdef _AMIGA
  45. #define NO_TIMING
  46. #endif
  47.  
  48. #ifndef NO_TIMING
  49. #define TIMING
  50. #endif
  51.  
  52. /*
  53.  * per default use MakeTexPK in unix environments unless it is not wanted 
  54.  */
  55. #ifdef unix
  56. #ifndef MAKETEXPK
  57. /* name of the program which is called to generate missing pk files
  58.  */
  59. #define MAKETEXPK "MakeTeXPK"
  60. #endif
  61. #endif
  62.  
  63. #ifdef _AMIGA
  64. #ifndef MAKETEXPK
  65. /* name of the program which is called to generate missing pk files
  66.  */
  67. #define MAKETEXPK "rx MF:MakeTeXfont.rexx"
  68. #endif
  69.  
  70.  
  71.  
  72. #ifdef NO_MAKETEXPK
  73. #undef MAKETEXPK
  74. #endif
  75.  
  76. /*
  77.  * assure that LJ2P is defined when LJ4 is defined;
  78.  * compile with support for LJ4's resident fonts
  79.  */
  80. #ifdef LJ4
  81. #define LJ2P
  82. #define LJ_RESIDENT_FONTS
  83. #endif
  84.  
  85. /*
  86.  * assure that LJ2 is defined when LJ2P is defined
  87.  */
  88. #ifdef LJ2P
  89. #ifndef LJ2
  90. #define LJ2
  91. #endif
  92. #endif
  93.  
  94. /*
  95.  * assure that LJ is defined when LJ2 of LJ4 is defined
  96.  */
  97. #if defined(LJ2)
  98. #ifndef LJ
  99. #define LJ
  100. #endif
  101. #endif
  102.  
  103. /*
  104.  * assure that IBM3812 is not defined when LJ is defined
  105.  */ 
  106. #ifdef LJ
  107. #ifdef IBM3812
  108. #undef IBM3812
  109. #endif
  110. #endif
  111.  
  112. #ifdef LJ_RESIDENT_FONTS
  113. #ifndef DEFAULT_TFM_PATH
  114. #define DEFAULT_TFM_PATH   "/usr/local/lib/tex/fonts"
  115. #endif
  116. #endif
  117.  
  118.  
  119. #define  _TRUE      (bool) 1
  120. #define  _FALSE     (bool) 0
  121. #define  UNKNOWN     -1
  122.  
  123. #define  STRSIZE         255     /* stringsize for file specifications  */
  124.  
  125. typedef  char    bool;
  126.  
  127. #ifdef hpux
  128. typedef  char    signed_char;
  129. #else
  130. #ifdef vms
  131. typedef  char    signed_char;
  132. #else
  133. #ifdef u3b2
  134. typedef  short signed_char;
  135. #else
  136. /* this is the default !! */
  137. typedef  signed char    signed_char; 
  138. #endif 
  139. #endif
  140. #endif
  141.  
  142. #if !defined(u3b2) && !defined(alpha)
  143. #define  ARITHMETIC_RIGHT_SHIFT
  144. #endif
  145.  
  146. #ifdef alpha
  147. #define long int
  148. #endif
  149.  
  150. bool findfile();
  151.  
  152.  
  153. /* 
  154.  * maximal number of characters in font file
  155.  * #define  LASTFNTCHAR  127        7-bit classic version
  156.  * #define  LASTFNTCHAR  255        8-bit fonts
  157.  */
  158.  
  159. #ifdef SEVENBIT 
  160. #define LASTFNTCHAR 127
  161. #else
  162. #define LASTFNTCHAR  255
  163. #endif
  164.  
  165.  
  166.  
  167. /* this information is needed in findfile.c and dvi2xx.c, NO CUSTOMIZATION */
  168. #ifdef LJ
  169. # ifndef MFMODE300
  170. /*--- Code by PAH define MFMODE300 "imagen" mode definition for metafont 300dpi */
  171. #  define MFMODE300 "hplaser"     /* mode definition for metafont 300dpi */
  172. # endif
  173. # ifdef LJ4
  174. #  ifndef MFMODE600
  175. #   define MFMODE600 "CanonCX"   /* mode definition for metafont 600dpi */
  176. #  endif
  177. # else
  178. #  define MFMODE MFMODE300       /* default mode */
  179. # endif
  180. #endif
  181.  
  182. #ifdef IBM3812
  183. #define RESOLUTION    240
  184. #ifndef MFMODE
  185. #define MFMODE "IBMThreeEightOneTwo"    /* mode definition for metafont */
  186. #endif
  187. #endif
  188.  
  189.  
  190. #ifdef unix
  191. #define OS "Unix"
  192. #define READ_BINARY     "r"
  193. #define WRITE_BINARY    "w"
  194. #if !HAVE_STDLIB_H
  195. #define labs(x) abs(x)
  196. #endif
  197. #endif
  198. #ifdef MSDOS
  199. #define OS "MS-DOS"
  200. #define READ_BINARY     "rb"
  201. #define WRITE_BINARY    "wb"
  202. #define MSC5
  203. #endif
  204. #ifdef OS2
  205. #define OS "OS/2"
  206. #define READ_BINARY     "rb"
  207. #define WRITE_BINARY    "wb"
  208. #define MSC5
  209. #endif
  210.  
  211. #ifdef vms
  212. #define OS "VMS"
  213. #include <ssdef.h>
  214. #include <stsdef.h>
  215. #define ftell vms_ftell            /* use some external routines, because */
  216. #define fseek vms_fseek            /* of some bugs in the VMS run time    */
  217. #define getchar vms_getchar        /* library */
  218. #define getenv vms_getenv
  219. #define ungetc vms_ungetc
  220. #define getname vms_getname
  221. #define READ_BINARY     "rb"
  222. #define WRITE_BINARY    "wb","rfm=fix","bls=512","mrs=512" /* fixed records */
  223. #define labs(x) abs(x)
  224. #endif
  225.  
  226. #ifdef _AMIGA
  227. #define OS "Amiga"
  228. #define READ_BINARY     "r"
  229. #define WRITE_BINARY    "w"
  230. #ifdef __SASC
  231. #define sys_errlist __sys_errlist
  232. #include <stdlib.h>
  233. #endif
  234. #endif
  235.  
  236.  
  237. /* Information returned by tfm_read_info. */
  238. typedef struct {
  239.   /* These string lengths are imposed by the TFM format. Either of these
  240.      values may be the empty string.  */
  241.   char coding_scheme[40];
  242.   char family[20];
  243.    
  244.   /* The second fontdimen. */
  245.   unsigned interword;
  246.    
  247.   /* These values are what will work to select the font in PCL. If this
  248.      TFM file doesn't have the `KN' extensions (distinguishable by the
  249.      family == "HPAUTOTFM"). */
  250. #define SPACING_FIXED 0
  251. #define SPACING_PROPORTIONAL 1
  252.   unsigned spacing;
  253.   int weight;
  254.   unsigned style;
  255.   unsigned typeface_id;
  256.  
  257.   /* TFM files can always have 256 characters, even if we're using the
  258.      old pixel format that only supports 128. The values are fix-words
  259.      scaled by the design size; i.e., straight from the TFM file. */
  260.   long widths[256];
  261. } tfm_info_type;
  262.